package reposiroty

import (
	"github.com/jinzhu/gorm"
	"go-test/model"
)

type CourseRepository interface {
	// CreateCourse 创建课程
	CreateCourse(course *model.Course, db *gorm.DB) (int64, error)
	// ListCourse 获取课程列表
	ListCourse(db *gorm.DB) ([]*model.Course, error)
	// DelCourse 删除课程
	DelCourse(courseId string, db *gorm.DB) (int64, error)
	// UpdateCourse 更新课程名称
	UpdateCourse(courseId string, name string, db *gorm.DB) (int64, error)
}
